/**  
* @Title: MyYaml.java
* @Package com.lemon.conf
* @Description: (一句话阐述):
* @author Ran_cc
* @date 2018年5月13日
* @version V1.0  
*/
package com.lemon.conf;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * <p>
 * Title: 自定义配置的yaml源 , 如果取出来放在static修饰的方法或者变量里面, 要用中间上下文 om/lemon/conf/content/SpringContextUtil.java
 * </p>
 * <p>
 * Description:
 * </p>
 * <p>
 * Company:
 * </p>
 * 
 * @author Ran_cc
 * @date 2018年5月13日
 * @版本 V 1.0
 */
@Configuration  
public class MyYml {
	
	@Value("${myYml.token.secretKey}")
	private String secretKey;
	@Value("${myYml.token.issuer}")
	private String issuer;
	@Value("${myYml.token.subject}")
	private String subject;
	@Value("${myYml.token.duiTime}")
	private String duiTime;
	@Value("${myYml.start-state}")
	private String startState;
	
	
	////////redis////////
	@Value("${spring.redis.host}")
	private String host;
	@Value("${spring.redis.password}")
	private String password;
	@Value("${spring.redis.port}")
	private String port;
	@Value("${spring.redis.timeout}")
	private String timeout;
	@Value("${spring.redis.jedis.pool.max-idle}")
	private String maxIdle;
	@Value("${spring.redis.jedis.pool.min-idle}")
	private String minIdle;
	@Value("${spring.redis.jedis.pool.max-wait}")
	private String maxWait;
	@Value("${spring.redis.jedis.pool.max-active}")
	private String maxActive;
	
	////////cache/////////////
	@Value( "${myYml.cache-expireTime}" )
	private String expireTime;
	@Value( "${myYml.cache-separator}" )
	private String separator;
	@Value( "${myYml.cache-preloadSecondTime}" )
	private String preloadSecondTime;
	
	
	public String getSecretKey() {
		return this.secretKey;
	}

	public String getIssuer() {
		return this.issuer;
	}

	public String getSubject() {
		return this.subject;
	}

	public void setSecretKey(String secretKey) {
		this.secretKey = secretKey;
	}

	public void setIssuer(String issuer) {
		this.issuer = issuer;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getDuiTime() {
		return this.duiTime;
	}

	public void setDuiTime(String duiTime) {
		this.duiTime = duiTime;
	}

	public String getStartState() {
		return this.startState;
	}

	public void setStartState(String startState) {
		this.startState = startState;
	}

	public String getHost() {
		return this.host;
	}

	public void setHost(String host) {
		this.host = host;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getPort() {
		return this.port;
	}

	public void setPort(String port) {
		this.port = port;
	}

	public String getTimeout() {
		return this.timeout;
	}

	public void setTimeout(String timeout) {
		this.timeout = timeout;
	}

	public String getMaxIdle() {
		return this.maxIdle;
	}

	public void setMaxIdle(String maxIdle) {
		this.maxIdle = maxIdle;
	}

	public String getMinIdle() {
		return this.minIdle;
	}

	public void setMinIdle(String minIdle) {
		this.minIdle = minIdle;
	}

	public String getMaxWait() {
		return this.maxWait;
	}

	public void setMaxWait(String maxWait) {
		this.maxWait = maxWait;
	}

	public String getMaxActive() {
		return this.maxActive;
	}

	public void setMaxActive(String maxActive) {
		this.maxActive = maxActive;
	}

	public String getExpireTime() {
		return this.expireTime;
	}

	public void setExpireTime( String expireTime ) {
		this.expireTime = expireTime;
	}

	public String getSeparator() {
		return this.separator;
	}

	public void setSeparator( String separator ) {
		this.separator = separator;
	}

	public String getPreloadSecondTime() {
		return this.preloadSecondTime;
	}

	public void setPreloadSecondTime( String preloadSecondTime ) {
		this.preloadSecondTime = preloadSecondTime;
	}
	
	
	
}
